<script setup lang='ts'>
import { ref, reactive, defineProps } from 'vue'
const { style, event } = defineProps(['style', 'event'])
</script>
<template>
  <div class="mh">
    <button :event="JSON.stringify(event)" :style="style"> 按钮 </button>
    <!-- //  <button class=" byx" :style="setPx(style)">按钮</button> -->
  </div>
</template>

<style lang='scss' scoped>
// .byx {
//   position: absolute;
//   border: 1px solid #f0f;
//   background: #ddd;
//   border-radius: 4px
// }
button {
  position: absolute;
}
</style>